import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'

const routes = [
  { path: '/', name: 'root', redirect: '/index' },
  {
    path: '/test',
    name: 'test',
    component: () => import('@/pages/test.vue'),
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('@/pages/index/index.vue'),
  },
  {
    path: '/huaqibei',
    name: 'huaqibei',
    component: () => import('@/pages/huaqibei/huaqibei.vue'),
  },
  {
    path: '/huaqibei_en',
    name: 'huaqibei_en',
    component: () => import('@/pages/huaqibei_en/huaqibei_en.vue'),
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
